package com.qf.day07.modifier.abs;

import java.util.Random;

/**
 * 子类
 */
public class Dog extends Animal {

    @Override
    public void eat() {
        System.out.println("wang~~~~~");
        System.out.println("dog吃了三碗米饭");
    }

    @Override
    public int sleep() {
        System.out.println("~~~~~~~~hu~~~~~~~");
        return new Random().nextInt(100);
    }
}
